package com.syyo.gulimall.order.config.mybatisplus;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Auther: wangzhong
 * @Date: 2020/7/17 11:59
 * @Description: 3.2 以前的版本需要配置逻辑删除和执行效率插件
 */
@Configuration
public class MyMpConfig {


    /**
     * 注册分页插件
     *
     * @return
     */
    @Bean
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();
    }

}
